//Domain
//http://order.x-juse.com/
//Namespace
//Juse.Interface
//ClassName
//JSShop.BLL.Interface.OrderInterface
//请勿修改上述接口信息
namespace Juse.Interface
{
    public class OrderInterface : wnxd.Web.InterfaceBase
    {
        public OrderInterface()
        {
            this.Domain = "http://order.x-juse.com/";
            this.Namespace = "JSShop.BLL.Interface";
            this.ClassName = "OrderInterface";
        }
        /// <summary>
        /// 订单是否存在
        /// </summary>
        public System.Boolean IsExists(System.String orderid)
        {
            wnxd.javascript.json r = this.Run("5D096FD50FA16304E9BE96A34E3512E1", orderid);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 查询订单信息
        /// </summary>
        public JSShop.Model.OrderInfo GetOrderInfo(System.String orderId)
        {
            wnxd.javascript.json r = this.Run("019C20EAE8C91A1F44E3F1D250FA78B5", orderId);
            return (JSShop.Model.OrderInfo)r.TryConvert(typeof(JSShop.Model.OrderInfo));
        }
        public System.Int32 GetUserOrderCount(System.Int32 userId, JSShop.Model.OrderQuery query)
        {
            wnxd.javascript.json r = this.Run("893325A9A1068213373190148D07240C", userId, query);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        public System.Data.DataSet GetUserOrder(System.Int32 userId, JSShop.Model.OrderQuery query)
        {
            wnxd.javascript.json r = this.Run("CD16CF07DCB2EF2E95746986EF0BE30A", userId, query);
            return (System.Data.DataSet)r.TryConvert(typeof(System.Data.DataSet));
        }
        public JSShop.Model.DbQueryResultOrdersAndItems GetUserOrderAndDetail(System.Int32 userId, JSShop.Model.OrderQuery query)
        {
            wnxd.javascript.json r = this.Run("A274AF1DC412DD1DDF1A6D6711030870", userId, query);
            return (JSShop.Model.DbQueryResultOrdersAndItems)r.TryConvert(typeof(JSShop.Model.DbQueryResultOrdersAndItems));
        }
        /// <summary>
        /// 提交订单
        /// </summary>
        public void ProcessorOrder(JSShop.Model.wnxd_OrderInfo orderInfo, System.Boolean async = true)
        {
            wnxd.javascript.json r = this.Run("60D949E6BE2FC336DC5836B3B083D9F9", orderInfo, async);
        }
        /// <summary>
        /// 成功付款修改订单信息
        /// </summary>
        public System.Boolean UpdateOrderPaySuccess(JSShop.Model.OrderInfo order)
        {
            wnxd.javascript.json r = this.Run("019C45409C1DBF7DAEDEDA981A80F0D0", order);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 成功付款修改订单信息状态
        /// </summary>
        public System.Boolean UpdateOrderPaySuccessStatus(JSShop.Model.OrderInfo order)
        {
            wnxd.javascript.json r = this.Run("DAA71C2BC11BCAE534038C71B456A608", order);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
    }
}